<script type="text/template" id="user_heards"><div class="aside">
        <div class="profile">
          <img class="avatar" src="{{icon}}">
          <h3 class="name">{{name}}</h3>
        </div>
        <ul class="nav">
          <li class="{{active === 'index'? 'active' : ''}}">
            <a href="index.html"><i class="fa fa-dashboard"></i>仪表盘</a>
          </li>
          <li class="{{group== 1 ? 'active' : ''}}">
            <a href="#menu-posts" class="collapsed" data-toggle="collapse">
              <i class="fa fa-thumb-tack"></i>文章<i class="fa fa-angle-right"></i>
            </a>
            <ul id="menu-posts" class="collapse">
              <li class="{{active == 'posts'? 'active' : ''}}"><a href="posts.html">所有文章</a></li>
              <li class="{{active == 'post-add'? 'active' : ''}}"><a href="post-add.html">写文章</a></li>
              <li class="{{active == 'categories'? 'active' : ''}}"><a href="categories.html">分类目录</a></li>
            </ul>
          </li>
          <li class="{{active == 'comments'? 'active' : ''}}">
            <a href="comments.html"><i class="fa fa-comments"></i>评论</a>
          </li>
          {{if role==="admin"}}
          <li class="{{active == 'users'? 'active' : ''}}">
            <a href="users.html"><i class="fa fa-users"></i>用户</a>
          </li>
          {{/if}}
          <li class="{{group == 2 ? 'active' : ''}}">
            <a href="#menu-settings" class="collapsed" data-toggle="collapse">
              <i class="fa fa-cogs"></i>设置<i class="fa fa-angle-right"></i>
            </a>
            <ul id="menu-settings" class="collapse">
              <li class="{{active == 'slides'? 'active' : ''}}"><a href="slides.html">图片轮播</a></li>
              <li class="{{active == 'settings'? 'active' : ''}}"><a href="settings.html">网站设置</a></li>
            </ul>
          </li>
        </ul>
      </div></script>